<% if @comment.errors.any? %>
	<div class="error_explaination">
		<h2><%= pluralize(@comment.errors.count, "error") %> prohibited this comment from being added:</h2>

		<ul>
		<% @comment.errors.full_messages.each do |msg| %>
			<li><%= msg %></li>
		<% end %>
		</ul>
	</div>
<% end %>

<%= simple_form_for [@product, @comment] do |f| %>
	<%= f.input :author %>
	<%= f.input :content %>
	<%= f.button :submit, value: "Save" %>
<% end %>